<?php $form = $this->beginWidget('CActiveForm', array('id' => 'video-form', 'enableAjaxValidation' => true)); ?>

<table cellspacing="1" cellpadding="4" width="100%">
    <tr align="center" valign="top">
        <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
            <div class="Block">
                <div class="BlockBar"><?php echo CHtml::activeLabel($model, 'video_add_title'); ?></div>
                <!-- tab bar -->
                <div id="tabbar-div">
                    <ul>
                        <li class="tab-front" id="general">基本信息</li>
                        <li class="tab-back" id="details">视频路径</li>
                    </ul>
                </div>
                
                <!-- tab end -->
                <?php echo $this->renderPartial('_form', array('model' => $model, 'form' => $form));?>
            </div></td>
        <td width="5"></td>
        <td width="250" align="center" valign="top"><div class="Block-Menu-Define">
                <div class="BlockBar"><?php echo Yii::t('default', '选择所属分类');?></div>
                <div class="BlockLinks">
                    
                    <ul>
                        <li><?php echo $form->error($model, 'category'); ?></li>
                        <?php echo $model->getCategoryList($model->category); ?>
                    </ul>
                </div>

            </div></td>
    </tr>
</table>
<?php $this->endWidget(); ?>
<script>
    $(".remove").click(function (){
        $(this).parent().parent().remove();
    });

</script>
